// 引入mongoose接口
const mongoose = require("mongoose");
// 初始化model
const schema=new mongoose.Schema({
    usersname: String,// 用户账号
    password: String // 用户密码
});
// 添加并定义model
const usersModel=mongoose.model("users",schema,"users")

mongoose.connect(
    "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/heshumiao",
 
    {
        useNewUrlParser: true,
        useUnifiedTopology: true,
        auth: { authSource: "admin" }
      },
   
);

module.exports={usersModel};
